home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / tclMotif-1.4 / doc / examples / double.tcl < prev    next >
Text File  |  1995-06-29  |  334b  |  9 lines

  1. # Double the application window width and height.
  2. # First, retrieve position and size resources :
  3. . getValues -x x -y y -width width -height height
  4. set width2  [expr width*2]
  5. set height2 [expr height*2]
  6. # Then, set back the new values :
  7. . setValues -width $width2 -height $height2
  8. . setValues -x [expr $x-$width] -y [expr $y-$height]
  9.